package com.neutech.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neutech.mapper.DocterMapper1;
import com.neutech.mapper.UserMapper;
import com.neutech.po.Docter1;
import com.neutech.po.KeShi1;
import com.neutech.po.User;

	@Service
	public class DocterService {
		@Autowired
		private DocterMapper1 docterMapper1;
		public Docter1 getdocter(int id){
			try {
				return docterMapper1.getDocterById(id);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			return new Docter1();
		}
		
		public int updatedocter(Docter1 doct) {
	    	 return docterMapper1.updateDocter(doct);
	      } 
		
		public int deledocter(int id) {
		    	return docterMapper1.delDocterById(id);
		      }
		 
		public Docter1 insertdocter(Docter1 doct) {
		    	docterMapper1.insertDocter(doct);
		    	return doct;
		      }  
	}

